//
//  RootView.m
//  UI3_UIImageView课堂练习
//
//  Created by dllo on 15/11/10.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RootView.h"

@implementation RootView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:self.frame];
    imageV.image = [UIImage imageNamed:@"image1.jpg"];
    [self addSubview:imageV];
    [imageV release];
}







@end
